package cn.yomigaeri.warn.mapper;

import cn.yomigaeri.common.entity.po.Car;
import cn.yomigaeri.common.entity.po.Rule;
import cn.yomigaeri.common.entity.po.Warn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName: CarMapper
 * @Package: cn.yomigaeri.warn.mapper
 * @Description:
 * @Author Yomigaeri
 * @Create 2025/6/5 01:40
 * @Version 1.0
 */
@Mapper
public interface RuleMapper {

    @Select("select * from rule_info where warn_id = #{warnId} and battery_type = #{batteryType}")
    Rule selectByBatteryAndWarnId(Integer batteryType,Integer warnId);

    @Select("select * from rule_info")
    List<Rule> findAllRules();
}
